﻿using System.Collections.Generic;

namespace Having.Site.Data.Lambda
{
    public class DataQueryResult
    {
        /// <summary>
        /// 返回sql语句中的参数变量集合
        /// </summary>
        public List<DataItemType> Para { set; get; }
        /// <summary>
        /// 返回sql语句
        /// </summary>
        public string SQL { set; get; }
        /// <summary>
        /// 其他辅助数据
        /// </summary>
        public Dictionary<string,dynamic> Dic { set; get; }

        public DataQueryResult() { }
        public DataQueryResult(List<DataItemType> _Para, string _SQL, Dictionary<string, dynamic> _Dic = null)
        {
            this.Para = _Para;
            this.SQL = _SQL;
            this.Dic = _Dic;
        }
    }
}
